<template>
	<Layout>
		<template slot="default">
			<div class="journal">
				<div class="container journal-container">
					<div class="journal-header">
						<div class="journal-title">{{ $page.post.title }}</div>
						<div class="journal-meta">
							<div class="journal-author">
								<div class="label"></div>
								<div class="author-name"></div>
							</div>
							
							<div class="journal-date">
								<span class="label"></span>
								<span></span>
							</div>
							<div class="journal-time">
								<span class="label"></span>
								<span></span>
							</div>
						</div>
					</div>
					<div class="journal-content">

					</div>
				</div>
			</div>
		</template>
	</Layout>
</template>

<page-query>
	query ($id: ID!) {
		post: strapiPost (id: $id) {
			id
			title
			author
			date
		}
	}
</page-query>

<script>
export default {
	name: 'Journal-1'
}
</script>

<style>
*{
	box-sizing: border-box;
}

.container{
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2rem;
}

.journal-container {
    max-width: 840px;
}
.journal-header {
    padding: 2rem 0 4rem;
}
.journal-title {
    font-size: 4rem;
    margin: 0 0 4rem;
    padding: 0;
}

.journal-meta {
    display: flex;
    flex-wrap: wrap;
    font-size: .8rem;
}
.journal-meta>div {
    margin-right: 4rem;
}
.journal-meta>div:last-of-type {
    margin: 0;
}
@media (min-width: 860px){
	.container {
			padding: 0 6rem;
	}
}
</style>